package com.sm.service;


import com.github.pagehelper.PageInfo;
import com.sm.controller.request.SelectCourseRequest;
import com.sm.controller.request.SelectCourseStudentRequest;
import com.sm.controller.respond.SelectCourseAchievementRespond;
import com.sm.controller.respond.SelectCourseStudentRespond;
import com.sm.entity.Course;
import com.sm.entity.Student;
import com.sm.entity.Teacher;
import com.sm.utils.R;

import java.util.List;

/**
 * @Description:
 * @Author: lpf
 * @Date: 2022/2/15
 */
public interface TeacherService {
    PageInfo<Course> getAllCourse(Integer page, Integer size);

    List<SelectCourseStudentRespond> getCourseAttender(SelectCourseRequest request);

    List<Student> getAllStudent();

    List<SelectCourseAchievementRespond> getStudentAchievement(SelectCourseStudentRequest request);

    void updateCourseList(Course course);

    void deleteCourseStudent(Integer CourseId,Integer studentId);

    void updateTeacher(Teacher teacher);

    Integer selectStudentByName(String studentName);

    void updateStudentScore(Integer score,Integer courseId,Integer studentId);

    List<SelectCourseAchievementRespond> getStudentAchievement(Integer courseId);

    void deleteTeacherAndUser(Integer id);
}
